import {request} from './http.js'


export function register(obj) {
    return request('g0/user/register', {
        method: "POST",
        data: obj
    })
}

export function login(obj) {
    return request('g0/user/login', {
        method: "POST",
        data: obj
    })
}

export function logout() {
    return request('g1/user/logout', {
        method: "GET"
    })
}